package com.ugoodtech.mdcc.core.utils;

/**
 * Created with IntelliJ IDEA.
 * User: Kotone
 * Date: 2017/9/12
 * Time: 19:02
 * To change this template use File | Settings | File Templates.
 */
public class ModelPro {

    private String type;
    private String field;
    private String description;

    public ModelPro(String type, String field, String description) {
        this.type = type;
        this.field = field;
        this.description = description;
    }

    public String getType() {
        return type;
    }

    public String getMethodField() {
        char[] cs=field.toCharArray();
        if (cs[0] >= 'a' && cs[0] <= 'z') {
            cs[0] -=32;
        }
        return String.valueOf(cs);
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
